<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="follow, index" />
<meta name="author" content="iune co." />
<meta name="description"
	content="IUNE有最好的库存管理SaaS软件。以更快更高的准确度，跟进实时数据的访问和库存移动。" />
<meta name="keywords"
	content="库存, 存货管理, 库存管理, 仓库管理, 云ERP, 云逸ERP, 中小型企业云ERP, SaaS ERP软件/系统" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>

<style type="text/css">
</style>

</head>
<body>


	<div class="container-fluid"
		data-ng-controller="accountVoucherSingleCtrl as Model">
		<div class="row">
			<div class="col-sm-12">




				<!-- Nav tabs -->
<!-- 				
  <ul class="nav nav-tabs nav-justified" role="tablist">
    <li role="presentation" class="active"><a href="#account_accountVoucher_single_tab_list" role="tab" data-toggle="tab">列表</a></li>
    <li role="presentation"><a href="#account_accountVoucher_single_tab_single" role="tab" data-toggle="tab">详细</a></li>
  </ul>
 -->  

				<!-- Tab panes -->
				<div class="tab-content">
					<!--  列表页面 -->
					<div role="tabpanel"
						data-ng-class="{true:'tab-pane active',false:'tab-pane'}[tabpanel=='list']"
						id="account_accountVoucher_single_tab_list">

						<!-- 列表按钮菜单 -->
						<div class="row">
							<div class="col-sm-12">

								<nav class="nav">
									<ul class="pagination navbar-left buttonBar">
										<li>
											<button class="btn btn-success"
												data-ng-click="tabpanel='single';">
												<span class="glyphicon glyphicon-file"></span> 详细
											</button>
										</li>
										<li>
											<div class="btn-group" role="toolbar">
												<shiro:hasPermission name="${path}:create">
													<button type="button" class="btn btn-info "
														data-ng-click="Model.add()">
														<span class="glyphicon glyphicon-plus"></span> 新建
													</button>
												</shiro:hasPermission>

												<shiro:hasPermission name="${path}:save">
													<button type="button" class="btn btn-default"
														data-ng-disabled="Model.dataMaster.currentIndex==null || Model.dataMaster.getCurrentState()"
														data-ng-click="Model.edit()">
														<span class="glyphicon glyphicon-edit"></span> 修改
													</button>
												</shiro:hasPermission>
												<shiro:hasPermission name="${path}:delete">
													<button type="button" class="btn btn-default"
														data-ng-disabled="Model.dataMaster.currentIndex==null || Model.dataMaster.getCurrentState()"
														data-ng-click="Model.remove()">
														<span class="glyphicon glyphicon-trash"></span> 删除
													</button>
												</shiro:hasPermission>
												<shiro:hasPermission name="${path}:query">
													<button type="button" class="btn btn-default" ng-if="false"
														data-ng-click="Model.refresh()">
														<span class="glyphicon glyphicon-refresh"></span> 刷新
													</button>
												</shiro:hasPermission>
											</div>
										</li>
									</ul>

									<shiro:hasPermission name="${path}:query">
										<query-like data="Model.dataMaster" place-holder="模糊查询..."></query-like>
									</shiro:hasPermission>

				
	<form class="navbar-form navbar-left buttonBar" style="padding-right:0px;">
         <div class="form-group">
 			<label class="control-label">单据日期:</label>
          	<range-filter  placeholder="请输入日期" filter-data="Model.dataMaster" filter-relation="AccountInvoice.orderDate" xid="rangeilter1" auto-refresh="false"></range-filter>
         </div>
		<shiro:hasPermission name="${path}:query">
		<!-- Split button -->
		<div class="btn-group">
			<button type="button" class="btn btn-default" data-ng-click="Model.refresh()">
				<span class="glyphicon glyphicon-refresh"></span> 刷新
			</button>
		  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
		    <span class="caret"></span>
		    <span class="sr-only">Toggle Dropdown</span>
		  </button>
		  <ul class="dropdown-menu" role="menu">
		    <li><a data-toggle="collapse" href="#_account_accountVoucher_single"> 更多过滤条件</a></li>
		  </ul>
		</div>
		</shiro:hasPermission>
    </form>		

								</nav>
<div class="collapse" id="_account_accountVoucher_single">
  <div class="well" style="padding-left:0px;padding-right:0px;">
	<nav class="nav">
		<form class="navbar-form navbar-left buttonBar" style="padding-left:0px;padding-right:0px;">
         <div class="form-group">
 			<label class="control-label">单号:</label>
          	<grid-filter  placeholder="请输入单号" filter-data="Model.dataMaster" filter-relation="accountInvoiceNo" xid="gridFilter1" auto-refresh="false"></grid-filter>
         </div>
         <div class="form-group">
 			<label class="control-label">交易对象:</label>
          	<grid-filter  placeholder="请输入对象编码" filter-data="Model.dataMaster" filter-relation="customerNo" xid="gridFilter4" auto-refresh="false"></grid-filter>
         </div>
         <div class="form-group">
 			<label class="control-label">对象名称:</label>
          	<grid-filter  placeholder="请输入对象名称" filter-data="Model.dataMaster" filter-relation="customerName" xid="gridFilter5" auto-refresh="false"></grid-filter>
         </div>
		<button type="button" class="btn btn-default" data-ng-click="Model.refresh()" data-toggle="collapse" data-target="#_account_accountVoucher_single">
			<span class="glyphicon glyphicon-refresh"></span> 刷新
		</button>
		</form>
	</nav>
  </div>
</div>				

							</div>
						</div>
						
						
						<!-- 列表 -->
						<div class="row">
							<div class="col-sm-12">

							<div class="table-responsive">
								<table class="table table-hover table-condensed" style="margin:0px;">
									<thead>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>

										<tr>
											<th></th>
											<th>#</th>
											<th hidden="hidden">状态</th>
											<th hidden="hidden">fID</th>
											<th>状态</th>
											<th hidden="hidden">子系统</th>
											<th hidden="hidden">单据类型</th>
											<th hidden="hidden">单据类型</th>
											<th>单号</th>
											<th>日期</th>
											<th>经办人</th>
											<th>大写金额</th>
											<th>附件数量</th>
											<th>笔数</th>
											<th>过账</th>
											<th>备注</th>
											<th hidden="hidden">创建者编码</th>
											<th hidden="hidden">创建者</th>
											<th hidden="hidden">创建时间</th>
											<th hidden="hidden">创建者id</th>
											<th hidden="hidden">公司id</th>
											<th hidden="hidden">公司</th>
											<th></th>
										</tr>
									</thead>
									<tbody>
										<tr data-ng-show="row.userdata.recordState!='delete'"
											data-ng-class="{true:'active'}[Model.dataMaster.currentIndex==Model.dataMaster.rows.indexOf(row)] +' '+ {true:'danger'}[row.direction.value==-1]"
											data-ng-click="Model.dataMaster.onRowClick(row,$event)"
											data-ng-dblclick="Model.gridListRowDblclick(Model.dataMaster.rows.indexOf(row),$event)"
											data-ng-repeat="row in Model.dataMaster.rows">
											<td style="width: 10px;"><span
												data-ng-show="Model.dataMaster.currentIndex==Model.dataMaster.rows.indexOf(row)"
												class="glyphicon glyphicon-hand-right" aria-hidden="true"></span></td>
											<td style="width: 10px;">{{Model.dataMaster.rows.indexOf(row)+1}}</td>
											<td style="width: 10px;" hidden="hidden"
												data-ng-bind="row.userdata.recordState"></td>
											<td style="width: 200px;" hidden="hidden">{{row.fid.value}}</td>
											<td style="width: 100px;">{{row.audit.value}}</td>
											<td style="width: 100px;" hidden="hidden">{{row.systemCode.value}}</td>
											<td style="width: 100px;" hidden="hidden">{{row.billType.value}}</td>
											<td style="width: 100px;" hidden="hidden">{{row.billTypeName.value}}</td>
											
											
											<td style="width: 100px;">{{row.voucherNo.value}}</td>
											<td style="width: 100px;">{{row.orderDate.value}}</td>
											<td style="width: 100px;">{{row.employeeName.value.substring(row.employeeName.value.lastIndexOf('/')+1,row.employeeName.value.length)}}</td>
											<td style="width: 200px;">{{row.wordsAmount.value}}</td>
											<td style="width: 100px;">{{row.attachQuantity.value}}</td>
											<td style="width: 100px;">{{row.detailsCount.value}}</td>
											<td style="width: 100px;">
												<span ng-if="row.postedFlag.value==1" class="glyphicon glyphicon-ok"></span>
											</td>
											<td style="width: 200px;">{{row.comments.value}}</td>
											<td style="width: 100px;" hidden="hidden">{{row.cUsercode.value}}</td>
											<td style="width: 100px;" hidden="hidden">{{row.cUsername.value}}</td>
											<td style="width: 200px;" hidden="hidden">{{row.cDatetime.value}}</td>
											<td style="width: 100px;" hidden="hidden">{{row.userId.value}}</td>
											<td style="width: 100px;" hidden="hidden">{{row.enterpriseNo.value}}</td>
											<td style="width: 200px;" hidden="hidden">{{row.enterpriseName.value}}</td>

											<td></td>
										</tr>

									</tbody>

									<tfoot>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>
									</tfoot>

								</table>
								</div>
								
							</div>
						</div>
						
						<!-- 分页组件 -->
						<div class="row">
							<div class="col-sm-12">
							
									<pag-ination data="Model.dataMaster" first-text="首页" previous-text="上一页" next-text="下一页" last-text="末页"></pag-ination>

							</div>
						</div>


					</div>
					<!--  列表页面 -->



					<!-- 详细页面 -->
					<div role="tabpanel"
						data-ng-class="{true:'tab-pane active',false:'tab-pane'}[tabpanel=='single']"
						id="account_accountVoucher_single_tab_single">


						<!-- 主表按钮菜单 -->
						<div class="row">
							<div class="col-sm-12">
								<nav class="nav">
									<ul class="pagination navbar-left buttonBar">
										<li>
											<button class="btn btn-success"
												data-ng-disabled="!Model.dataMaster.readonly()"
												data-ng-click="tabpanel='list';">
												<span class="glyphicon glyphicon-list"></span> 列表
											</button>
										</li>
										<li>
											<div class="btn-group" role="toolbar">
												<shiro:hasPermission name="${path}:create">
													<button type="button" class="btn btn-info "
														data-ng-disabled="!Model.dataMaster.readonly()"
														data-ng-click="Model.add();">
														<span class="glyphicon glyphicon-plus"></span> 新建
													</button>
												</shiro:hasPermission>
												<shiro:hasPermission name="${path}:save">
													<button type="button" class="btn btn-default"
														data-ng-disabled="Model.dataMaster.currentIndex==null || Model.dataMaster.getCurrentState()"
														data-ng-show="Model.dataMaster.readonly()"
														data-ng-click="Model.edit();">
														<span class="glyphicon glyphicon-edit"></span> 修改
													</button>
												</shiro:hasPermission>

												<button type="button" class="btn btn-success "
													data-ng-show="!Model.dataMaster.readonly()"
													data-ng-click="Model.save();">
													<span class="glyphicon glyphicon-floppy-save"></span> 保存
												</button>
												<button type="button" class="btn btn-warning "
													data-ng-show="!Model.dataMaster.readonly()"
													data-ng-click="Model.saveCancel();">
													<span class="glyphicon glyphicon-floppy-open"></span> 取消
												</button>
												<shiro:hasPermission name="${path}:delete">
													<button type="button" class="btn btn-default"
														data-ng-show="Model.dataMaster.readonly()"
														data-ng-disabled="Model.dataMaster.currentIndex==null || Model.dataMaster.getCurrentState()"
														data-ng-click="Model.remove()">
														<span class="glyphicon glyphicon-trash"></span> 删除
													</button>
												</shiro:hasPermission>
												<shiro:hasPermission name="${path}:export">
													<button type="button" class="btn btn-default"
														data-ng-disabled="!Model.dataMaster.readonly()"
														data-ng-click="Model.printExport()">
														<span class="glyphicon glyphicon-export"></span> 输出
													</button>
												</shiro:hasPermission>
											</div>
										</li>
									</ul>

									<ul class="pagination navbar-left buttonBar">
										<li>
											<div class="btn-group" role="toolbar">
												<shiro:hasPermission name="${path}:query">
													<button type="button" class="btn btn-default"
														data-ng-disabled="!Model.dataMaster.readonly()"
														data-ng-click="Model.refresh()">
														<span class="glyphicon glyphicon-refresh"></span> 刷新
													</button>
												</shiro:hasPermission>
												<row-ination data="Model.dataMaster" template-url="js/_directives/rowInation_div.html" first-text="第一条" previous-text="上一条" next-text="下一条" last-text="最后一条" first-show="false" previous-show="true" next-show="true" last-show="false"></row-ination>
										  </div>
										</li>
									</ul>




									<ul class="pagination navbar-left buttonBar" ng-if="Model.dataMaster.getCurrentAudit()">
										<li>
											<div class="btn-group" role="toolbar">
												<button type="button" class="btn btn-default" ng-click="Model.posting()">
													<i class="glyphicon glyphicon-pencil" aria-hidden="true"></i> 过账/撤销
												</button>
											
										  </div>
										</li>
									</ul>

									<ul class="pagination navbar-right buttonBar">

										<li>
											<div class="btn-group" role="toolbar">
												<shiro:hasPermission name="${path}:confirm">
												<button type="button" class="btn btn-success"
													title="提交后将不能编辑。"
													data-ng-show="!Model.dataMaster.getCurrentAudit() && !Model.dataMaster.getCurrentState()"
													data-ng-disabled="!Model.dataMaster.readonly()"
													data-ng-click="Model.triggerConfirmClick()">
													<span class="glyphicon glyphicon-lock"></span> 提交
												</button>
												</shiro:hasPermission>
												<shiro:hasPermission name="${path}:active">
												<button type="button" class="btn btn-success"
													title="撤销提交后可以编辑。"
													data-ng-show="!Model.dataMaster.getCurrentAudit() && Model.dataMaster.getCurrentState()"
													data-ng-disabled="!Model.dataMaster.readonly()"
													data-ng-click="Model.triggerActiveClick()">
													<span class="glyphicon glyphicon-retweet"></span> 撤销提交
												</button>
												</shiro:hasPermission>
												<shiro:hasPermission name="${path}:agreeIt">
												<button type="button" class="btn btn-info"
													data-ng-show="!Model.dataMaster.getCurrentStatus() && Model.dataMaster.getCurrentState() && !Model.dataMaster.getCurrentAudit()"
													data-ng-disabled="!Model.dataMaster.readonly()"
													data-ng-click="Model.triggerAgreeItClick()">
													<span class="glyphicon glyphicon-lock"></span> 审批
												</button>
												</shiro:hasPermission>
												<shiro:hasPermission name="${path}:unAgree">
												<button type="button" class="btn btn-info"
													data-ng-show="!Model.dataMaster.getCurrentStatus() && Model.dataMaster.getCurrentState() && Model.dataMaster.getCurrentAudit()"
													data-ng-disabled="!Model.dataMaster.readonly()"
													data-ng-click="Model.triggerUnAgreeClick()">
													<span class="glyphicon glyphicon-retweet"></span> 撤销审批
												</button>
												</shiro:hasPermission>
												<shiro:hasPermission name="${path}:close">
												<button type="button" class="btn btn-warning"
													title="关闭后，此单据在系统中将不参与任何业务活动。"
													data-ng-show="Model.dataMaster.getCurrentAudit() && !Model.dataMaster.getCurrentStatus()"
													data-ng-disabled="!Model.dataMaster.readonly()"
													data-ng-click="Model.triggerCloseClick()">
													<span class="glyphicon glyphicon-lock"></span> 关闭
												</button>
												</shiro:hasPermission>
												<shiro:hasPermission name="${path}:open">
												<button type="button" class="btn btn-warning"
													data-ng-show="Model.dataMaster.getCurrentAudit() && Model.dataMaster.getCurrentStatus()"
													data-ng-disabled="!Model.dataMaster.readonly()"
													data-ng-click="Model.triggerOpenClick()">
													<span class="glyphicon glyphicon-retweet"></span> 打开
												</button>
												</shiro:hasPermission>
											</div>
										</li>
									</ul>
								</nav>
							</div>
						</div>
						
						<img alt="" src="images/check.png" style="position:absolute;z-index:99;right:0px;" ng-show="Model.dataMaster.getCurrentAudit()">
						
						<!-- 主表FORM -->
						<div class="row">
							<div class="col-sm-12">

								<uib-tabset> 
								<uib-tab heading="基本信息"> <br>

								<form class="form-horizontal"
									id="account_accountVoucher_single_form_base">

									<div class="row">
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">单号</label>
												<div class="col-sm-8">
													<input type="text" class="form-control"
														data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].voucherNo.value"
														placeHolder="自动编码" name="voucherNo" disabled />
												</div>
											</div>
										</div>
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">日期</label>
												<div class="col-sm-8">
													<div class="input-group date">
														<input type="text" class="form-control" simple-datepicker
															orientation="bottom auto"
															data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].orderDate.value"
															name="orderDate"
															data-ng-disabled="Model.dataMaster.readonly();" />
													</div>
													<!-- /input-group -->
												</div>
											</div>

										</div>
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">过账标识</label>
												<div class="col-sm-8">
													<input type="checkbox" disabled class="form-control" ng-true-value="1" ng-false-value="0" data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].postedFlag.value" />
												</div>
											</div>
										</div>
									</div>
									<div class="row">
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">红字蓝字</label>
												<div class="col-sm-8">
						<input type="checkbox" class="form-control" bootstrap-switch  
							data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].direction.value"
							on-color="primary" off-color="danger" on-text="蓝字" off-text="红字"
							ng-true-value="1" ng-false-value="-1" size="small" can-input="Model.dataMaster.readonly();"/>
												</div>
											</div>
										</div>
										<div class="col-sm-6">
											<div class="form-group form-group-sm">
												<label class="col-sm-2 control-label">经办人</label>
												<div class="col-sm-10">
													<div class="input-group">
														<input type="text" class="form-control"
															data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].employeeName.value"
															data-ng-readonly="true" /> <span
															class="input-group-btn">
															<button class="btn btn-default btn-sm"
																data-ng-disabled="Model.dataMaster.readonly();"
																data-ng-click="Model.triggerEmployeeNoClick()">
																<span class="glyphicon "
																	data-ng-class="{'glyphicon-th-list':(Model.dataMaster.rows[Model.dataMaster.currentIndex].employeeNo.value==null || Model.dataMaster.rows[Model.dataMaster.currentIndex].employeeNo.value==''),'glyphicon-remove':!(Model.dataMaster.rows[Model.dataMaster.currentIndex].employeeNo.value==null || Model.dataMaster.rows[Model.dataMaster.currentIndex].employeeNo.value=='')}"
																	aria-hidden="true"></span>
															</button>
														</span>
													</div>
												</div>
											</div>
										</div>

									</div>
									<div class="row">
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">附件数量</label>
												<div class="col-sm-8">
													<input type="number" class="form-control"
														data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].attachQuantity.value"
														name="attachQuantity"  data-ng-disabled="Model.dataMaster.readonly();"/>
												</div>
											</div>
										</div>
										<div class="col-sm-6">
											<div class="form-group form-group-sm">
												<label class="col-sm-2 control-label">大写金额</label>
												<div class="col-sm-10">
													<input type="text" class="form-control"
														data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].wordsAmount.value"
														name="wordsAmount" disabled />
												</div>
											</div>
										</div>
									</div>
								</form>
								</uib-tab> 
								<uib-tab heading="其他信息"> <br>

								<form class="form-horizontal"
									id="account_accountVoucher_single_form_account">

									<div class="row">
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">来源</label>
												<div class="col-sm-8">
													<input type="text" class="form-control"
														data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].originName.value"
														name="originName" data-ng-disabled="Model.dataMaster.readonly();"/>
												</div>
											</div>
										</div>
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">来源单号</label>
												<div class="col-sm-8">
													<input type="text" class="form-control"
														data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].originNo.value"
														name="originNo" data-ng-disabled="Model.dataMaster.readonly();"/>
												</div>
											</div>
										</div>
									</div>
									

								</form>
								</uib-tab> 
								
								<uib-tab heading="备注"> <br>
								<form class="form-horizontal" id="account_accountVoucher_single_form_comments">
									<div class="row">
										<div class="col-sm-12">

											<div class="form-group">
												<label class="col-sm-1 control-label">备注</label>
												<div class="col-sm-11">
													<textarea rows="5" class="form-control"
														data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].comments.value"
														data-ng-readonly="Model.dataMaster.readonly();">
													</textarea>
												</div>
											</div>

										</div>
									</div>
								</form>
								</uib-tab> 
								
								<uib-tab heading="制单"> <br>
								<form class="form-horizontal" id="account_accountVoucher_single_form_user">

									<div class="row">
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">制单人</label>
												<div class="col-sm-8">
													<input type="text" class="form-control"
														data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].cUsercode.value"
														disabled />
												</div>
											</div>
										</div>
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">名称</label>
												<div class="col-sm-8">
													<input type="text" class="form-control"
														data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].cUsername.value"
														disabled />
												</div>
											</div>
										</div>
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">制单时间</label>
												<div class="col-sm-8">
													<input type="text" class="form-control"
														data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].cDatetime.value"
														disabled />
												</div>
											</div>
										</div>

									</div>
									<div class="row">
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">修改人</label>
												<div class="col-sm-8">
													<input type="text" class="form-control"
														data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].eUsercode.value"
														disabled />
												</div>
											</div>
										</div>
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">名称</label>
												<div class="col-sm-8">
													<input type="text" class="form-control"
														data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].eUsername.value"
														disabled />
												</div>
											</div>
										</div>
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">修改时间</label>
												<div class="col-sm-8">
													<input type="text" class="form-control"
														data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].eDatetime.value"
														disabled />
												</div>
											</div>
										</div>

									</div>
									<div class="row">
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">审批人</label>
												<div class="col-sm-8">
													<input type="text" class="form-control"
														data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].tUsercode.value"
														disabled />
												</div>
											</div>
										</div>
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">名称</label>
												<div class="col-sm-8">
													<input type="text" class="form-control"
														data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].tUsername.value"
														disabled />
												</div>
											</div>
										</div>
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">审批时间</label>
												<div class="col-sm-8">
													<input type="text" class="form-control"
														data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].tDatetime.value"
														disabled />
												</div>
											</div>
										</div>

									</div>
								</form>
								</uib-tab> </uib-tabset>


							</div>
						</div>
						<!-- 子表按钮菜单 -->
						<div class="row">
							<div class="col-sm-12">

								<nav class="nav">
									<ul class="pagination navbar-left buttonBar">
										<li>
											<div class="btn-group" role="toolbar">
												<button type="button" class="btn btn-default "
													data-ng-disabled="Model.dataMaster.readonly()"
													data-ng-click="Model.addrow()">
													<span class="glyphicon glyphicon-plus"></span> 增加
												</button>
												<button type="button" class="btn btn-default"
													data-ng-disabled="Model.dataMaster.readonly() || Model.dataDetail.currentIndex==null"
													data-ng-click="Model.delrow()">
													<span class="glyphicon glyphicon-minus"></span> 删除
												</button>

											</div>
										</li>
									</ul>


								</nav>

							</div>
						</div>

						<!-- 子表 -->
						<div class="row">
							<div class="col-sm-12">

								<div class="table-responsive">
									<table class="table table-hover table-condensed"
										data-readonly={{Model.dataMaster.readonly()}}
										style="cellpadding: 0px; cellspacing: 0px;">
										<thead>
											<tr>
												<th colspan="99"  style="padding:0px;">
												</th>
											</tr>
	
											<tr>
												<th></th>
	
												<th>#</th>
												<th hidden="hidden">状态</th>
												<th hidden="hidden">fID</th>
	
												<th hidden="hidden">操作状态</th>
												<th hidden="hidden">子系统</th>
												<th hidden="hidden">单据类型</th>
												<th hidden="hidden">单据类型</th>
												<th hidden="hidden">日期</th>
												<th hidden="hidden">audit</th>
												<th hidden="hidden">fMasterID</th>
	
												<th hidden="hidden">物料编码</th>
												<th>摘要</th>
												<th>会计科目</th>
												<th>科目名称</th>
												<th>借方金额</th>
												<th>贷方金额</th>
												<th>备注</th>
												<th hidden="hidden">公司id</th>
												<th hidden="hidden">公司</th>
												<th></th>
											</tr>
										</thead>
										<tbody>
											<tr data-ng-show="row.userdata.recordState!='delete'"
												data-ng-class="{true:'active'}[Model.dataDetail.currentIndex==Model.dataDetail.rows.indexOf(row)]"
												data-ng-click="Model.dataDetail.onRowClick(row,$event)"
												data-ng-repeat="row in Model.dataDetail.rows">
												<td style="width: 10px;"><span
													data-ng-show="Model.dataDetail.currentIndex==Model.dataDetail.rows.indexOf(row)"
													class="glyphicon glyphicon-hand-right" aria-hidden="true"></span></td>
	
												<td style="width: 50px;"><span ng-bind="row.serialNo.value"></span></td>
												<td style="width: 50px;" hidden="hidden"
													data-ng-bind="row.userdata.recordState"></td>
												<td style="width: 200px;" hidden="hidden">{{row.fID.value}}<span
													data-ng-bind="row.enterpriseNo.value"></span></td>
	
												<td style="width: 100px;" hidden="hidden"><span
													data-ng-bind="row.state.value"></span></td>
												<td style="width: 100px;" hidden="hidden"><span
													data-ng-bind="row.systemCode.value"></span></td>
												<td style="width: 100px;" hidden="hidden"><span
													data-ng-bind="row.billType.value"></span></td>
												<td style="width: 100px;" hidden="hidden"><span
													data-ng-bind="row.billTypeName.value"></span></td>
												<td style="width: 500px;" hidden="hidden" td-input="date"
													data-orientation="bottom auto"
													data-ng-model="row.orderDate.value"><span
													data-ng-bind="row.orderDate.value"></span></td>
												<td style="width: 100px;" hidden="hidden"><span
													data-ng-bind="row.audit.value"></span></td>
												<td style="width: 100px;" hidden="hidden"><span
													data-ng-bind="row.fMasterID.value"></span></td>
	
												<td style="width: 100px;" td-input="inputbtn" hidden="hidden"
													iptclick="Model.grid_itemNoButtonClick()"
													data-ng-model="row.itemNo.value"><span
													data-ng-bind="row.itemNo.value"></span></td>
												<td style="width: 300px;" td-input="text"
													data-ng-model="row.summarys.value"><span
													data-ng-bind="row.summarys.value"></span></td>
												<td style="width: 200px;" td-input="outputbtn"
													iptclick="Model.grid_captionNoClick()"
													data-ng-model="row.captionNo.value"><span
													data-ng-bind="row.captionNo.value"></span></td>
												<td style="width: 300px;" td-input="ro"
													data-ng-model="row.captionFullName.value"><span
													data-ng-bind="row.captionFullName.value"></span></td>
													
												<td style="width: 150px;text-align:right;" td-input="number" data-ng-model="row.debitAmount.value">
													<span data-ng-bind="row.debitAmount.value | number:2"></span>
												</td>
												<td style="width: 150px;text-align:right;" td-input="number" data-ng-model="row.creditAmount.value">
													<span data-ng-bind="row.creditAmount.value | number:2"></span>
												</td>
												
												<td style="width: 200px;" td-input="text"
													data-ng-model="row.comments.value"><span
													data-ng-bind="row.comments.value"></span></td>
												<td style="width: 100px;" hidden="hidden"><span
													data-ng-bind="row.enterpriseNo.value"></span></td>
												<td style="width: 200px;" hidden="hidden"><span
													data-ng-bind="row.enterpriseName.value"></span></td>
	
												<td></td>
											</tr>
	
										</tbody>
										<tfoot>
											<tr>
												<th></th>
	
												<th></th>
												<th hidden="hidden">状态</th>
												<th hidden="hidden">fID</th>
	
												<th hidden="hidden">操作状态</th>
												<th hidden="hidden">子系统</th>
												<th hidden="hidden">单据类型</th>
												<th hidden="hidden">单据类型</th>
												<th hidden="hidden">日期</th>
												<th hidden="hidden">audit</th>
												<th hidden="hidden">fMasterID</th>
	
												<th hidden="hidden">物料编码</th>
												<th>合计：{{Model.dataMaster.rows[Model.dataMaster.currentIndex].detailsCount.value}}笔</th>
												<th></th>
												<th></th>
												<th style="text-align:right;">
													<span data-ng-bind="Model.dataMaster.rows[Model.dataMaster.currentIndex].debitAmount.value | number:2"></span>
												</th>
												<th style="text-align:right;">
													<span data-ng-bind="Model.dataMaster.rows[Model.dataMaster.currentIndex].creditAmount.value | number:2"></span>
												</th>
												<th></th>
												<th hidden="hidden">备注</th>
												<th hidden="hidden">公司id</th>
												<th hidden="hidden">公司</th>
												<th></th>
											</tr>
											<tr>
												<th colspan="99"  style="padding:0px;">
												</th>
											</tr>
										</tfoot>
									</table>
								</div>
							</div>
						</div>

						<!-- 子表结束 -->



					</div>
				</div>
			</div>
		</div>






	</div>



</body>

</html>

